//
//  ViewController.m
//  CordovaDemo
//
//  Created by menchao on 2018/6/3.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import "ViewController.h"
#import "CordovaWebController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    button.backgroundColor = [UIColor greenColor];
    [button setTitle:@"跳转" forState:UIControlStateNormal];
    button.frame = CGRectMake(100, 100, 200, 50);
    [self.view addSubview:button];
    [button addTarget:self action:@selector(jumpTo) forControlEvents:UIControlEventTouchUpInside];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)jumpTo{
    CordovaWebController *vc =  [[CordovaWebController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}

@end
